{% if this.flash_messages %}
{% for flash in this.flash_messages() %}
    <div class="alert alert-{{flash[1]}}">
      <button type="button" class="close" data-dismiss="alert">×</button>
      {{flash[0]}}
    </div>
{% endfor %}
{% endif %}